#!/bin/bash
# git clone https://mirrors.ustc.edu.cn/git/ohmyzsh.git
export REMOTE=https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git

/bin/bash -c "$(curl -fsSL https://mirrors.ustc.edu.cn/misc/ohmyzsh-install.sh | sed '/exec zsh/d')"


ZSH=~/.oh-my-zsh

git clone https://mirrors.nju.edu.cn/git/zsh-syntax-highlighting.git    $ZSH/custom/plugins/zsh-syntax-highlighting &
git clone https://mirrors.nju.edu.cn/git/zsh-autosuggestions.git        $ZSH/custom/plugins/zsh-autosuggestions &
git clone https://gitee.com/hevey88/conda-zsh-completion.git            $ZSH/custom/plugins/conda-zsh-completion &
#git clone https://gitee.com/hevey88/zsh-completions.git                 $ZSH/custom/plugins/zsh-completions &


python3 -c "$(curl -fsSL https://gitee.com/hevey88/brew/raw/master/zshrc.py)"
python3 -c "$(curl -fsSL https://gitee.com/hevey88/brew/raw/master/vim.py)"
#sed -i ""  "/^_*plugins=/d" ~/.zshrc
#sed -i ""  "72a\\"$'\n'"plugins=(sublime z sudo extract colored-man-pages zsh-autosuggestions zsh-syntax-highlighting)" ~/.zshrc
